#pragma once

#if defined(WIN32) || defined(_WINDOWS)
/*
#define LAND_WINDOWS
#define LAND_SYS_WIN_PC
#define LAND_SYS_WIN_RT
#define LAND_SYS_WIN_PHONE
*/
#define LAND_SYS_WIN
#define LAND_WINDOWS

#ifdef WIN_RT
#define LAND_SYS_WIN_RT
#endif

#ifdef WIN_PHONE
#define LAND_SYS_WIN_PHONE
#endif

#if !defined(LAND_SYS_WIN_RT) && !defined(LAND_SYS_WIN_PHONE)
#define LAND_SYS_WINPC
#endif

#endif

#if defined(LINUX) || defined(linux)
#define LAND_LINUX
#define LAND_UNIX
#endif

#if defined(ANDROID)
#define LAND_ANDROID
#define LAND_UNIX
#endif

#if defined(__APPLE__) || defined(APPLE)
#define LAND_UNIX
#define LAND_APPLE
/*
#define LAND_SYS_MACOS
#define LAND_SYS_IOS
*/
#ifdef APPLE_IOS
#define LAND_SYS_IOS
#endif

#ifndef LAND_SYS_IOS
#define LAND_SYS_MACOS
#endif

#endif


#if !defined(LAND_WINDOWS) &&\
    !defined(LAND_UNIX)
#error "unknown system"
#endif


#ifndef NULL
#ifdef __cplusplus
#define NULL        0
#else
#define NULL        ((void *)0)
#endif
#endif
